package com.example.demo.mapper.process;


import com.example.demo.dto.process.AddCourseDto;
import com.example.demo.dto.process.UpdateAttendanceDto;
import com.example.demo.entity.process.Attendance;
import com.example.demo.entity.process.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-03-31
 * Time:18:38
 */
@Mapper
public interface AttendanceMapper {
    // 新增考勤信息
    int addAttendance(UpdateAttendanceDto updateAttendanceDto);
    // 修改考勤信息
    int updateAttendance(Integer attendance_id, Integer count);

    //查考勤 - 所有
    List<Attendance> getAttendanceAll();
    List<Attendance> getAttendanceByCourseId(Integer course_id);

    List<Attendance> getAttendanceByStudentId(Integer student_id);
    List<Attendance> getAttendanceById(Integer attendance_id);
}
